package com.aba.bms.management;

public class TestManagement {
	
	    public static void main(String[] args) {
	        Management management = new Management();

	        // 注册用户
	        management.register("user1", "123456", "13800000000", false);
	        management.register("admin1", "admin123", "13900000000", true);

	        // 登录测试
	        management.login("user1", "123456");
	        management.login("user1", "wrongPassword");

	        // 普通用户修改个人信息
	        management.updateUserInfo("user1", "newPassword", "13811111111");

	        // 管理员查看所有用户信息
	        management.viewAllUserInfo();

	        // 管理员修改用户信息
	        management.updateUserInfoByAdmin("user1", "adminUpdatedPassword", "13822222222", true);

	        // 设置用户权限
	        management.setUserPermission("user1", false);
	    }
	}


